package com.sayimo.maker.base.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sayimo.framework.database.mybatis.AbstractMybatisBaseDao;
import com.sayimo.framework.exception.DaoException;
import com.sayimo.maker.base.dao.BasePhotoInterfaceDao;
import com.sayimo.maker.base.vo.BasePhoto;


@Repository(value="basePhotoDao")
public class BasePhotoInterfaceImplDao extends AbstractMybatisBaseDao<BasePhoto> implements BasePhotoInterfaceDao{

	public Integer insertBasePhoto(BasePhoto basePhoto) throws DaoException {
		return this.mybatisInterfaceBaseDao.insert("com.sayimo.maker.base.dao.BasePhotoInterfaceDao.insertSelective",basePhoto);
	}

	public List<BasePhoto> selectAllById(String ids) throws DaoException {
		return this.mybatisInterfaceBaseDao.query("com.sayimo.maker.base.dao.BasePhotoInterfaceDao.selectAllById",ids);
	}
	public List<BasePhoto> selectAllGoodsPhotoById(String ids) throws DaoException {
		return this.mybatisInterfaceBaseDao.query("com.sayimo.maker.base.dao.BasePhotoInterfaceDao.selectAllGoodsPhotoById",ids);
	}

	public BasePhoto selectBasePhotoId(Integer id) throws DaoException {
		return this.mybatisInterfaceBaseDao.get("com.sayimo.maker.base.dao.BasePhotoInterfaceDao.selectByPrimaryKey", id);
	}
}
